
package com.zhihaoliang.code.bean;

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>itemType complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="itemType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="type">
 *           &lt;simpleType>
 *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               &lt;enumeration value="anim"/>
 *               &lt;enumeration value="drawable"/>
 *               &lt;enumeration value="layout"/>
 *               &lt;enumeration value="mipmap"/>
 *               &lt;enumeration value="color"/>
 *               &lt;enumeration value="values"/>
 *               &lt;enumeration value="XML"/>
 *               &lt;enumeration value="JAVA"/>
 *               &lt;enumeration value="KOTLIN"/>
 *             &lt;/restriction>
 *           &lt;/simpleType>
 *         &lt;/element>
 *         &lt;element name="inf">
 *           &lt;simpleType>
 *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               &lt;enumeration value="动画anim文件的信息:"/>
 *               &lt;enumeration value="drawable文件的信息:"/>
 *               &lt;enumeration value="layout 文件的信息:"/>
 *               &lt;enumeration value="mipmap 文件的信息:"/>
 *               &lt;enumeration value="color 文件的信息:"/>
 *               &lt;enumeration value="values 文件的信息:"/>
 *               &lt;enumeration value="Xxm 文件的信息:"/>
 *               &lt;enumeration value="Java 文件的信息:"/>
 *               &lt;enumeration value="Kotlin 文件的信息:"/>
 *             &lt;/restriction>
 *           &lt;/simpleType>
 *         &lt;/element>
 *         &lt;element name="suff" minOccurs="0">
 *           &lt;simpleType>
 *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               &lt;enumeration value=".xml"/>
 *               &lt;enumeration value=".java"/>
 *               &lt;enumeration value=".kt"/>
 *             &lt;/restriction>
 *           &lt;/simpleType>
 *         &lt;/element>
 *         &lt;element name="item" type="{}itemType" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "itemType", propOrder = {
    "type",
    "inf",
    "suff",
    "item"
})
public class ItemType {

    @XmlElement(required = true)
    protected String type;
    @XmlElement(required = true)
    protected String inf;
    protected String suff;
    protected List<ItemType> item;

    /**
     * 获取type属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getType() {
        return type;
    }

    /**
     * 设置type属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setType(String value) {
        this.type = value;
    }

    /**
     * 获取inf属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getInf() {
        return inf;
    }

    /**
     * 设置inf属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setInf(String value) {
        this.inf = value;
    }

    /**
     * 获取suff属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSuff() {
        return suff;
    }

    /**
     * 设置suff属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSuff(String value) {
        this.suff = value;
    }

    /**
     * Gets the value of the item property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the item property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getItem().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ItemType }
     * 
     * 
     */
    public List<ItemType> getItem() {
        if (item == null) {
            item = new ArrayList<ItemType>();
        }
        return this.item;
    }

    @Override
    public String toString() {
        return  new Gson().toJson(this);
    }
}
